package com.clwl.supervise.superviseapp.entity.customer;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
    * 标注库表与字段对应
    */
@Data
@TableName(value = "TS_TAGGING_TABLE_CL")
public class TsTaggingTableCl implements Serializable {


    @TableId(value = "ID", type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 字段英文名
     */
    @TableField(value = "NAME_EN")
    private String nameEn;

    /**
     * 表英文名
     */
    @TableField(value = "TABLE_NAME_EN")
    private String tableNameEn;

    /**
     * TS_TAGGING_TABLE表id
     */
    @TableField(value = "TABLE_ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long tableId;

    /**
     * 创建时间
     */
    @TableField(value = "CREATE_TIME")
    private Date createTime;

    /**
     * 字段类型0-检索字段；1-返回内容字段；2-返回标题字段
     */
    @TableField(value = "COLUMN_TYPE")
    private String columnType;

    private static final long serialVersionUID = 1L;
}
